Fchown

Section: Oct. 7, 1991 (2)
Updated: MiNT Programmer's Manual
Index Return to Main Contents
 

NAME

Fchown - change a file's ownership  

SYNOPSIS

LONG Fchown( char *name, WORD uid, WORD gid );
 

DESCRIPTION

Fchown changes a file's user and group ownership to uid and gid respectively. These ownerships determine access rights to the file.

Only a process with effective uid 0 or whose effective uid matches the user ownership of the file may make this call. In the latter case, the new uid must match the old one, and the calling process must also be a member of the group specified by gid .  

RETURNS

0 on success

EACCDN if the calling process has an effective uid which differs from the owner of the file and which is not 0.

EFILNF if the file is not found

EPTHNF if the path to the file is not found.  

SEE ALSO

Fchmod(2), Fxattr(2)  

BUGS

In practice, the call is useful only to processes with effective uid 0.


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURNS
SEE ALSO
BUGS

This document was created by man2html, using the manual pages.
Time: 16:01:48 GMT, March 03, 2023